<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/13
 * Time: 13:06
 */

namespace app\api\model\Video;


use think\Model;

class VideoUserRelationModel extends Model
{

    /**
     * 数据表名
     * @var string
     */
    protected $name = "video_user_relation";

    /**
     * 视频
     */
    public function video()
    {
        return $this->hasOne(VideoModel::class, 'id', 'video_id');
    }

}